// * 全局组件
import { VueConstructor } from 'vue'
import PageTools from './PageTools/index.vue'
import UploadExcel from './UploadExcel/index.vue'
// import UploadImage from './UploadImage/index.vue'
// import AvatarUpload from './AvatarUpload/index.vue'
import MyAvatarUpload from './MyAvatarUpload/index.vue'

/*
! 原写法
* import Vue,{VueConstructor} from 'vue'
* (Vue as VueConstructor).component('PageTools', PageTools)
* (Vue as VueConstructor).component('UploadExcel', UploadExcel)
 */

/*
!  install 写法
*/
export default {
  install(Vue: VueConstructor) {
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('MyAvatarUpload', MyAvatarUpload)
    // Vue.component('UploadImage', UploadImage)
    // Vue.component('AvatarUpload', AvatarUpload)
  }
}
